/* Styles for the servicios.html page */

/* Custom styles for services page */
.services-hero {
  position: relative;
  background-attachment: fixed;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: url('https://cdn.glitch.global/29efe4f6-b226-490d-9792-5075025a0bfa/img%2Fwmremove-transformed.jpeg?v=1745979190371');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

/* Parallax Background Effect */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://cdn.glitch.global/29efe4f6-b226-490d-9792-5075025a0bfa/img%2Fwmremove-transformed.jpeg?v=1745979190371');
  background-size: cover;
  background-position: center;
  z-index: -1;
  will-change: transform;
}

.services-hero .container {
  position: relative;
  z-index: 1;
}

/* Page title for services */
.page-title {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
}

/* Enhanced animations for service cards */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.6s ease,
              background 0.6s ease;
  overflow: hidden;
  position: relative;
  text-align: center;
  /* Added flex display for vertical alignment */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(135deg, rgba(15, 117, 188, 0.05), rgba(41, 171, 226, 0.1));
  z-index: -1;
  transition: height 0.6s ease;
}

.service-card:hover::before {
  height: 100%;
}

.service-card .btn-learn-more {
  transform: translateY(10px);
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
  margin-top: auto; /* Changed from 1.5rem to auto to push to bottom */
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 3px 10px rgba(15, 117, 188, 0.2);
  align-self: center; /* Center horizontally */
}

.service-card:hover .btn-learn-more {
  transform: translateY(0);
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary-color);
}

.service-card p {
  color: var(--text-color);
  line-height: 1.7;
  transition: color 0.3s ease;
  /* Added flex-grow to push button to bottom */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

/* Floating animation for icons */
@keyframes floatIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.service-card:hover .service-icon i {
  animation: floatIcon 3s infinite ease-in-out;
}

.service-card .service-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(15, 117, 188, 0.1), rgba(41, 171, 226, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card .service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.5s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(10deg);
  background: linear-gradient(135deg, rgba(15, 117, 188, 0.2), rgba(41, 171, 226, 0.4));
  box-shadow: 0 8px 25px rgba(15, 117, 188, 0.3);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
  align-items: stretch; /* Make all cards the same height */
}
